-- GENERATED SPELL FOR [Booty Bay Bruiser] --


function spell0_4624(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4624', 5279, 1)
end

function spell1_4624(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4624', 652, 1)
end

function Sorts_4624(pUnit, Event)
local choix_sorts_4624 = math.random(0, 1)
if choix_sorts_4624 == 0 then
pUnit:RegisterEvent('spell0_4624', 1, 1)
end
if choix_sorts_4624 == 1 then
pUnit:RegisterEvent('spell1_4624', 1, 1)
end
end

function mob4624_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4624', math.random(1500, 3000), 1)
end

function mob4624_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4624_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4624_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4624, 1, 'mob4624_Action')
RegisterUnitEvent(4624, 2, 'mob4624_Leave')
RegisterUnitEvent(4624, 3, 'mob4624_Kill')
RegisterUnitEvent(4624, 4, 'mob4624_Die')
